package com.ktgj.service.service.impl;

import java.math.BigDecimal;
import java.util.List;
import com.ktgj.common.core.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.service.mapper.ContractLinkViphallPriceMapper;
import com.ktgj.service.domain.ContractLinkViphallPrice;
import com.ktgj.service.service.IContractLinkViphallPriceService;

/**
 * 合同贵宾厅价格			
Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-03
 */
@Service
public class ContractLinkViphallPriceServiceImpl implements IContractLinkViphallPriceService 
{
    @Autowired
    private ContractLinkViphallPriceMapper contractLinkViphallPriceMapper;

    /**
     * 查询合同贵宾厅价格			

     * 
     * @param contractViphallPriceId 合同贵宾厅价格			
ID
     * @return 合同贵宾厅价格			

     */
    @Override
    public ContractLinkViphallPrice selectContractLinkViphallPriceById(Long contractViphallPriceId)
    {
        return contractLinkViphallPriceMapper.selectContractLinkViphallPriceById(contractViphallPriceId);
    }

    /**
     * 查询合同贵宾厅价格			
列表
     * 
     * @param contractLinkViphallPrice 合同贵宾厅价格			

     * @return 合同贵宾厅价格			

     */
    @Override
    public List<ContractLinkViphallPrice> selectContractLinkViphallPriceList(ContractLinkViphallPrice contractLinkViphallPrice)
    {
        return contractLinkViphallPriceMapper.selectContractLinkViphallPriceList(contractLinkViphallPrice);
    }

    /**
     * 新增合同贵宾厅价格			

     * 
     * @param contractLinkViphallPrice 合同贵宾厅价格			

     * @return 结果
     */
    @Override
    public int insertContractLinkViphallPrice(ContractLinkViphallPrice contractLinkViphallPrice)
    {
        contractLinkViphallPrice.setCreateTime(DateUtils.getNowDate());
        return contractLinkViphallPriceMapper.insertContractLinkViphallPrice(contractLinkViphallPrice);
    }

    /**
     * 修改合同贵宾厅价格			

     * 
     * @param contractLinkViphallPrice 合同贵宾厅价格			

     * @return 结果
     */
    @Override
    public int updateContractLinkViphallPrice(ContractLinkViphallPrice contractLinkViphallPrice)
    {
        contractLinkViphallPrice.setUpdateTime(DateUtils.getNowDate());
        return contractLinkViphallPriceMapper.updateContractLinkViphallPrice(contractLinkViphallPrice);
    }

    /**
     * 批量删除合同贵宾厅价格			

     * 
     * @param contractViphallPriceIds 需要删除的合同贵宾厅价格			
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkViphallPriceByIds(Long[] contractViphallPriceIds)
    {
        return contractLinkViphallPriceMapper.deleteContractLinkViphallPriceByIds(contractViphallPriceIds);
    }

    /**
     * 删除合同贵宾厅价格			
信息
     * 
     * @param contractViphallPriceId 合同贵宾厅价格			
ID
     * @return 结果
     */
    @Override
    public int deleteContractLinkViphallPriceById(Long contractViphallPriceId)
    {
        return contractLinkViphallPriceMapper.deleteContractLinkViphallPriceById(contractViphallPriceId);
    }

    @Override
    public BigDecimal queryPriceByviphallId(Long viphallId) {
        return contractLinkViphallPriceMapper.queryPriceByviphallId(viphallId);
    }
}
